--no-tree-shaking オプション追加#25
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 51 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds a new ChangesNo-tree-shaking fallback feature
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant BundleCommand
participant Inventory
User->>CLI: risundle bundle --no-tree-shaking
CLI->>BundleCommand: run(args)
alt no_tree_shaking or no_check
BundleCommand->>BundleCommand: skip inventory.verify()
else
BundleCommand->>Inventory: verify()
end
alt no_tree_shaking
BundleCommand->>BundleCommand: unused = empty set
else
BundleCommand->>BundleCommand: unused = unused_origins(...)
end
BundleCommand->>User: expanded output (all non-kept libraries)
Related issues: Suggested reviewers: TwoSquirrels 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
識別子タグを使わないモードでは stale ハッシュ検証が不要であり、 フォールバック用途をエラーで妨げないようにする。あわせて CLI 専用の tree_shaking を Settings から外し、config + CLI マージという構造体の 契約を保つ。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
- keep 指定ライブラリは --no-tree-shaking でも #include のまま残る旨を明記 - フォールバックレシピ: keep ライブラリには -I が必要な注意を追加、 2>/dev/null をやめて g++ のエラーを見せ、誤診を防ぐ - 英語版チートシートのクリップボード例に iconv 併記 - spec に --no-tree-shaking の挙動 (検証スキップ・設定ファイル非対応) を追記 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/cheatsheet.ja.md`:
- Around line 94-113: The fallback check currently uses g++ with -fsyntax-only,
which only performs syntax/semantic validation and misses build failures that
happen during a real compile. Update the examples around risundle and the
bundle() helper to use the actual g++ compilation flow that matches normal build
behavior, and keep the --no-tree-shaking fallback tied to that real compile
result rather than syntax-only checking.
In `@docs/cheatsheet.md`:
- Around line 95-113: The fallback logic in the cheatsheet currently uses a
syntax-only check in the bundle() example, which may miss real build failures.
Replace the g++ -fsyntax-only verification with the same full compile command
your judge uses, and keep the || fallback to risundle --no-tree-shaking in the
shell recipe. Update the surrounding example text so it clearly reflects that
the check should mirror the actual build step rather than just syntax
validation.
In `@README.ja.md`:
- Around line 63-68: The `README.ja.md` options description for
`--no-tree-shaking` is missing its validation-skip behavior, so update the
`--no-tree-shaking` explanation in this section to explicitly state that it also
skips library update hash verification, not just tree-shaking. Keep the
surrounding `--keep` and `--embed` descriptions as-is, and adjust the note below
the table so the behavior of `--no-tree-shaking` is described consistently and
unambiguously.
In `@README.md`:
- Around line 63-68: Update the README section for the `--no-tree-shaking`
option to explicitly mention that it also skips the library-update hash
verification performed by the implementation. Keep the existing explanation of
tree-shaking behavior, and add a brief note near the `--no-tree-shaking`
description so readers know stale libraries are not rejected in this mode.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 200d45ec-1d13-449e-975d-b94ab503a29f
📒 Files selected for processing (9)
README.ja.mdREADME.mddocs/cheatsheet.ja.mddocs/cheatsheet.mddocs/spec.ja.mddocs/spec.mdsrc/cli.rssrc/commands/bundle.rstests/cli.rs
- フォールバックレシピの検証をリンクまで通す実コンパイル (-o /dev/null) に 変更し、定義消失時の undefined reference も検出できるようにする - README に --no-tree-shaking がハッシュ検証も行わない旨を追記 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TwiopnwyFnRbSUyNoFLWAZ
close #22
フォールバックが可能になります!
Summary by CodeRabbit
New Features
--no-tree-shakingoption for bundling, letting you expand code without tree-shaking when needed.--keep, and the behavior difference is documented.Documentation
Tests